import { ColumnProps } from "@/components/Table/type";
import { SchemaProps } from "@/components/Form/type";
export const columns: ColumnProps[] = [
  { type: "index", label: "#", width: 50 },
  { prop: "postCode", label: "岗位编码", search: { el: "input" } },
  { prop: "postName", label: "岗位名称", search: { el: "input" } },
  { prop: "action", label: "操作", width: 150, fixed: "right" }
];

export const schemas: SchemaProps[] = [
  {
    field: "postCode",
    label: "岗位编码",
    required: true,
    disabled: row => {
      return !!row.id;
    }
  },
  {
    field: "postName",
    label: "岗位名称",
    required: true
  }
];
